package com.itheima.d6Regex;

import java.lang.reflect.Array;
import java.util.Arrays;

public class RegexDemo2 {
    public static void main(String[] args) {
        String names = "杨过abcedf张无忌efjghe乔峰";
        String[] strings = names.split("[a-z]{1,}");
        System.out.println(Arrays.toString(strings));

        System.out.println(names.replaceAll("[a-z]{1,}","love"));

    }
}
